<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Cursors</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GDK 3 参考手册">
<link rel="up" href="reference.html" title="API参考">
<link rel="prev" href="gdk3-Visuals.html" title="Visuals">
<link rel="next" href="gdk3-Windows.html" title="Windows">
<meta name="generator" content="GTK-Doc V1.17 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gdk3-Visuals.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="reference.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GDK 3 参考手册</th>
<td><a accesskey="n" href="gdk3-Windows.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gdk3-Cursors.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#gdk3-Cursors.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gdk3-Cursors"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gdk3-Cursors.top_of_page"></a>Cursors</span></h2>
<p>Cursors — Standard and pixmap cursors</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gdk3-Cursors.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gdk/gdk.h&gt;

                    <a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor">GdkCursor</a>;
enum                <a class="link" href="gdk3-Cursors.html#GdkCursorType" title="enum GdkCursorType">GdkCursorType</a>;
<a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="returnvalue">GdkCursor</span></a> *         <a class="link" href="gdk3-Cursors.html#gdk-cursor-new" title="gdk_cursor_new ()">gdk_cursor_new</a>                      (<em class="parameter"><code><a class="link" href="gdk3-Cursors.html#GdkCursorType" title="enum GdkCursorType"><span class="type">GdkCursorType</span></a> cursor_type</code></em>);
<a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="returnvalue">GdkCursor</span></a> *         <a class="link" href="gdk3-Cursors.html#gdk-cursor-new-from-pixbuf" title="gdk_cursor_new_from_pixbuf ()">gdk_cursor_new_from_pixbuf</a>          (<em class="parameter"><code><a class="link" href="gdk3-GdkDisplay.html#GdkDisplay" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code><a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);
<a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="returnvalue">GdkCursor</span></a> *         <a class="link" href="gdk3-Cursors.html#gdk-cursor-new-from-name" title="gdk_cursor_new_from_name ()">gdk_cursor_new_from_name</a>            (<em class="parameter"><code><a class="link" href="gdk3-GdkDisplay.html#GdkDisplay" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);
<a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="returnvalue">GdkCursor</span></a> *         <a class="link" href="gdk3-Cursors.html#gdk-cursor-new-for-display" title="gdk_cursor_new_for_display ()">gdk_cursor_new_for_display</a>          (<em class="parameter"><code><a class="link" href="gdk3-GdkDisplay.html#GdkDisplay" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gdk3-Cursors.html#GdkCursorType" title="enum GdkCursorType"><span class="type">GdkCursorType</span></a> cursor_type</code></em>);
<a class="link" href="gdk3-GdkDisplay.html#GdkDisplay" title="GdkDisplay"><span class="returnvalue">GdkDisplay</span></a> *        <a class="link" href="gdk3-Cursors.html#gdk-cursor-get-display" title="gdk_cursor_get_display ()">gdk_cursor_get_display</a>              (<em class="parameter"><code><a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a> *cursor</code></em>);
<a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *         <a class="link" href="gdk3-Cursors.html#gdk-cursor-get-image" title="gdk_cursor_get_image ()">gdk_cursor_get_image</a>                (<em class="parameter"><code><a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a> *cursor</code></em>);
<a class="link" href="gdk3-Cursors.html#GdkCursorType" title="enum GdkCursorType"><span class="returnvalue">GdkCursorType</span></a>       <a class="link" href="gdk3-Cursors.html#gdk-cursor-get-cursor-type" title="gdk_cursor_get_cursor_type ()">gdk_cursor_get_cursor_type</a>          (<em class="parameter"><code><a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a> *cursor</code></em>);
<a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="returnvalue">GdkCursor</span></a> *         <a class="link" href="gdk3-Cursors.html#gdk-cursor-ref" title="gdk_cursor_ref ()">gdk_cursor_ref</a>                      (<em class="parameter"><code><a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a> *cursor</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gdk3-Cursors.html#gdk-cursor-unref" title="gdk_cursor_unref ()">gdk_cursor_unref</a>                    (<em class="parameter"><code><a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a> *cursor</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="gdk3-Cursors.description"></a><h2>Description</h2>
<p>
These functions are used to create and destroy cursors.
There is a number of standard cursors, but it is also
possible to construct new cursors from pixbufs. There
may be limitations as to what kinds of cursors can be
constructed on a given display, see
<a class="link" href="gdk3-GdkDisplay.html#gdk-display-supports-cursor-alpha" title="gdk_display_supports_cursor_alpha ()"><code class="function">gdk_display_supports_cursor_alpha()</code></a>,
<a class="link" href="gdk3-GdkDisplay.html#gdk-display-supports-cursor-color" title="gdk_display_supports_cursor_color ()"><code class="function">gdk_display_supports_cursor_color()</code></a>,
<a class="link" href="gdk3-GdkDisplay.html#gdk-display-get-default-cursor-size" title="gdk_display_get_default_cursor_size ()"><code class="function">gdk_display_get_default_cursor_size()</code></a> and
<a class="link" href="gdk3-GdkDisplay.html#gdk-display-get-maximal-cursor-size" title="gdk_display_get_maximal_cursor_size ()"><code class="function">gdk_display_get_maximal_cursor_size()</code></a>.
</p>
<p>
Cursors by themselves are not very interesting, they must be be
bound to a window for users to see them. This is done with
<a class="link" href="gdk3-Windows.html#gdk-window-set-cursor" title="gdk_window_set_cursor ()"><code class="function">gdk_window_set_cursor()</code></a> or by setting the cursor member of the
<a class="link" href="gdk3-Windows.html#GdkWindowAttr" title="struct GdkWindowAttr"><span class="type">GdkWindowAttr</span></a> struct passed to <a class="link" href="gdk3-Windows.html#gdk-window-new" title="gdk_window_new ()"><code class="function">gdk_window_new()</code></a>.
</p>
</div>
<div class="refsect1">
<a name="gdk3-Cursors.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GdkCursor"></a><h3>GdkCursor</h3>
<pre class="programlisting">typedef struct {
  GObject parent_instance;
} GdkCursor;
</pre>
<p>
The <a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a> structure represents a cursor. Its contents are private.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GdkCursorType"></a><h3>enum GdkCursorType</h3>
<pre class="programlisting">typedef enum
{
  GDK_X_CURSOR 		  = 0,
  GDK_ARROW 		  = 2,
  GDK_BASED_ARROW_DOWN    = 4,
  GDK_BASED_ARROW_UP 	  = 6,
  GDK_BOAT 		  = 8,
  GDK_BOGOSITY 		  = 10,
  GDK_BOTTOM_LEFT_CORNER  = 12,
  GDK_BOTTOM_RIGHT_CORNER = 14,
  GDK_BOTTOM_SIDE 	  = 16,
  GDK_BOTTOM_TEE 	  = 18,
  GDK_BOX_SPIRAL 	  = 20,
  GDK_CENTER_PTR 	  = 22,
  GDK_CIRCLE 		  = 24,
  GDK_CLOCK	 	  = 26,
  GDK_COFFEE_MUG 	  = 28,
  GDK_CROSS 		  = 30,
  GDK_CROSS_REVERSE 	  = 32,
  GDK_CROSSHAIR 	  = 34,
  GDK_DIAMOND_CROSS 	  = 36,
  GDK_DOT 		  = 38,
  GDK_DOTBOX 		  = 40,
  GDK_DOUBLE_ARROW 	  = 42,
  GDK_DRAFT_LARGE 	  = 44,
  GDK_DRAFT_SMALL 	  = 46,
  GDK_DRAPED_BOX 	  = 48,
  GDK_EXCHANGE 		  = 50,
  GDK_FLEUR 		  = 52,
  GDK_GOBBLER 		  = 54,
  GDK_GUMBY 		  = 56,
  GDK_HAND1 		  = 58,
  GDK_HAND2 		  = 60,
  GDK_HEART 		  = 62,
  GDK_ICON 		  = 64,
  GDK_IRON_CROSS 	  = 66,
  GDK_LEFT_PTR 		  = 68,
  GDK_LEFT_SIDE 	  = 70,
  GDK_LEFT_TEE 		  = 72,
  GDK_LEFTBUTTON 	  = 74,
  GDK_LL_ANGLE 		  = 76,
  GDK_LR_ANGLE 	 	  = 78,
  GDK_MAN 		  = 80,
  GDK_MIDDLEBUTTON 	  = 82,
  GDK_MOUSE 		  = 84,
  GDK_PENCIL 		  = 86,
  GDK_PIRATE 		  = 88,
  GDK_PLUS 		  = 90,
  GDK_QUESTION_ARROW 	  = 92,
  GDK_RIGHT_PTR 	  = 94,
  GDK_RIGHT_SIDE 	  = 96,
  GDK_RIGHT_TEE 	  = 98,
  GDK_RIGHTBUTTON 	  = 100,
  GDK_RTL_LOGO 		  = 102,
  GDK_SAILBOAT 		  = 104,
  GDK_SB_DOWN_ARROW 	  = 106,
  GDK_SB_H_DOUBLE_ARROW   = 108,
  GDK_SB_LEFT_ARROW 	  = 110,
  GDK_SB_RIGHT_ARROW 	  = 112,
  GDK_SB_UP_ARROW 	  = 114,
  GDK_SB_V_DOUBLE_ARROW   = 116,
  GDK_SHUTTLE 		  = 118,
  GDK_SIZING 		  = 120,
  GDK_SPIDER		  = 122,
  GDK_SPRAYCAN 		  = 124,
  GDK_STAR 		  = 126,
  GDK_TARGET 		  = 128,
  GDK_TCROSS 		  = 130,
  GDK_TOP_LEFT_ARROW 	  = 132,
  GDK_TOP_LEFT_CORNER 	  = 134,
  GDK_TOP_RIGHT_CORNER 	  = 136,
  GDK_TOP_SIDE 		  = 138,
  GDK_TOP_TEE 		  = 140,
  GDK_TREK 		  = 142,
  GDK_UL_ANGLE 		  = 144,
  GDK_UMBRELLA 		  = 146,
  GDK_UR_ANGLE 		  = 148,
  GDK_WATCH 		  = 150,
  GDK_XTERM 		  = 152,
  GDK_LAST_CURSOR,
  GDK_BLANK_CURSOR        = -2,
  GDK_CURSOR_IS_PIXMAP 	  = -1
} GdkCursorType;
</pre>
<p>
The standard cursors available.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="GDK-X-CURSOR:CAPS"></a><span class="term"><code class="literal">GDK_X_CURSOR</code></span></p></td>
<td>
<img src="X_cursor.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-ARROW:CAPS"></a><span class="term"><code class="literal">GDK_ARROW</code></span></p></td>
<td>
<img src="arrow.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-BASED-ARROW-DOWN:CAPS"></a><span class="term"><code class="literal">GDK_BASED_ARROW_DOWN</code></span></p></td>
<td>
<img src="based_arrow_down.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-BASED-ARROW-UP:CAPS"></a><span class="term"><code class="literal">GDK_BASED_ARROW_UP</code></span></p></td>
<td>
<img src="based_arrow_up.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-BOAT:CAPS"></a><span class="term"><code class="literal">GDK_BOAT</code></span></p></td>
<td>
<img src="boat.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-BOGOSITY:CAPS"></a><span class="term"><code class="literal">GDK_BOGOSITY</code></span></p></td>
<td>
<img src="bogosity.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-BOTTOM-LEFT-CORNER:CAPS"></a><span class="term"><code class="literal">GDK_BOTTOM_LEFT_CORNER</code></span></p></td>
<td>
<img src="bottom_left_corner.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-BOTTOM-RIGHT-CORNER:CAPS"></a><span class="term"><code class="literal">GDK_BOTTOM_RIGHT_CORNER</code></span></p></td>
<td>
<img src="bottom_right_corner.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-BOTTOM-SIDE:CAPS"></a><span class="term"><code class="literal">GDK_BOTTOM_SIDE</code></span></p></td>
<td>
<img src="bottom_side.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-BOTTOM-TEE:CAPS"></a><span class="term"><code class="literal">GDK_BOTTOM_TEE</code></span></p></td>
<td>
<img src="bottom_tee.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-BOX-SPIRAL:CAPS"></a><span class="term"><code class="literal">GDK_BOX_SPIRAL</code></span></p></td>
<td>
<img src="box_spiral.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-CENTER-PTR:CAPS"></a><span class="term"><code class="literal">GDK_CENTER_PTR</code></span></p></td>
<td>
<img src="center_ptr.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-CIRCLE:CAPS"></a><span class="term"><code class="literal">GDK_CIRCLE</code></span></p></td>
<td>
<img src="circle.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-CLOCK:CAPS"></a><span class="term"><code class="literal">GDK_CLOCK</code></span></p></td>
<td>
<img src="clock.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-COFFEE-MUG:CAPS"></a><span class="term"><code class="literal">GDK_COFFEE_MUG</code></span></p></td>
<td>
<img src="coffee_mug.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-CROSS:CAPS"></a><span class="term"><code class="literal">GDK_CROSS</code></span></p></td>
<td>
<img src="cross.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-CROSS-REVERSE:CAPS"></a><span class="term"><code class="literal">GDK_CROSS_REVERSE</code></span></p></td>
<td>
<img src="cross_reverse.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-CROSSHAIR:CAPS"></a><span class="term"><code class="literal">GDK_CROSSHAIR</code></span></p></td>
<td>
<img src="crosshair.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-DIAMOND-CROSS:CAPS"></a><span class="term"><code class="literal">GDK_DIAMOND_CROSS</code></span></p></td>
<td>
<img src="diamond_cross.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-DOT:CAPS"></a><span class="term"><code class="literal">GDK_DOT</code></span></p></td>
<td>
<img src="dot.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-DOTBOX:CAPS"></a><span class="term"><code class="literal">GDK_DOTBOX</code></span></p></td>
<td>
<img src="dotbox.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-DOUBLE-ARROW:CAPS"></a><span class="term"><code class="literal">GDK_DOUBLE_ARROW</code></span></p></td>
<td>
<img src="double_arrow.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-DRAFT-LARGE:CAPS"></a><span class="term"><code class="literal">GDK_DRAFT_LARGE</code></span></p></td>
<td>
<img src="draft_large.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-DRAFT-SMALL:CAPS"></a><span class="term"><code class="literal">GDK_DRAFT_SMALL</code></span></p></td>
<td>
<img src="draft_small.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-DRAPED-BOX:CAPS"></a><span class="term"><code class="literal">GDK_DRAPED_BOX</code></span></p></td>
<td>
<img src="draped_box.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-EXCHANGE:CAPS"></a><span class="term"><code class="literal">GDK_EXCHANGE</code></span></p></td>
<td>
<img src="exchange.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-FLEUR:CAPS"></a><span class="term"><code class="literal">GDK_FLEUR</code></span></p></td>
<td>
<img src="fleur.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-GOBBLER:CAPS"></a><span class="term"><code class="literal">GDK_GOBBLER</code></span></p></td>
<td>
<img src="gobbler.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-GUMBY:CAPS"></a><span class="term"><code class="literal">GDK_GUMBY</code></span></p></td>
<td>
<img src="gumby.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-HAND1:CAPS"></a><span class="term"><code class="literal">GDK_HAND1</code></span></p></td>
<td>
<img src="hand1.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-HAND2:CAPS"></a><span class="term"><code class="literal">GDK_HAND2</code></span></p></td>
<td>
<img src="hand2.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-HEART:CAPS"></a><span class="term"><code class="literal">GDK_HEART</code></span></p></td>
<td>
<img src="heart.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-ICON:CAPS"></a><span class="term"><code class="literal">GDK_ICON</code></span></p></td>
<td>
<img src="icon.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-IRON-CROSS:CAPS"></a><span class="term"><code class="literal">GDK_IRON_CROSS</code></span></p></td>
<td>
<img src="iron_cross.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-LEFT-PTR:CAPS"></a><span class="term"><code class="literal">GDK_LEFT_PTR</code></span></p></td>
<td>
<img src="left_ptr.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-LEFT-SIDE:CAPS"></a><span class="term"><code class="literal">GDK_LEFT_SIDE</code></span></p></td>
<td>
<img src="left_side.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-LEFT-TEE:CAPS"></a><span class="term"><code class="literal">GDK_LEFT_TEE</code></span></p></td>
<td>
<img src="left_tee.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-LEFTBUTTON:CAPS"></a><span class="term"><code class="literal">GDK_LEFTBUTTON</code></span></p></td>
<td>
<img src="leftbutton.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-LL-ANGLE:CAPS"></a><span class="term"><code class="literal">GDK_LL_ANGLE</code></span></p></td>
<td>
<img src="ll_angle.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-LR-ANGLE:CAPS"></a><span class="term"><code class="literal">GDK_LR_ANGLE</code></span></p></td>
<td>
<img src="lr_angle.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-MAN:CAPS"></a><span class="term"><code class="literal">GDK_MAN</code></span></p></td>
<td>
<img src="man.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-MIDDLEBUTTON:CAPS"></a><span class="term"><code class="literal">GDK_MIDDLEBUTTON</code></span></p></td>
<td>
<img src="middlebutton.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-MOUSE:CAPS"></a><span class="term"><code class="literal">GDK_MOUSE</code></span></p></td>
<td>
<img src="mouse.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-PENCIL:CAPS"></a><span class="term"><code class="literal">GDK_PENCIL</code></span></p></td>
<td>
<img src="pencil.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-PIRATE:CAPS"></a><span class="term"><code class="literal">GDK_PIRATE</code></span></p></td>
<td>
<img src="pirate.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-PLUS:CAPS"></a><span class="term"><code class="literal">GDK_PLUS</code></span></p></td>
<td>
<img src="plus.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-QUESTION-ARROW:CAPS"></a><span class="term"><code class="literal">GDK_QUESTION_ARROW</code></span></p></td>
<td>
<img src="question_arrow.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-RIGHT-PTR:CAPS"></a><span class="term"><code class="literal">GDK_RIGHT_PTR</code></span></p></td>
<td>
<img src="right_ptr.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-RIGHT-SIDE:CAPS"></a><span class="term"><code class="literal">GDK_RIGHT_SIDE</code></span></p></td>
<td>
<img src="right_side.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-RIGHT-TEE:CAPS"></a><span class="term"><code class="literal">GDK_RIGHT_TEE</code></span></p></td>
<td>
<img src="right_tee.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-RIGHTBUTTON:CAPS"></a><span class="term"><code class="literal">GDK_RIGHTBUTTON</code></span></p></td>
<td>
<img src="rightbutton.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-RTL-LOGO:CAPS"></a><span class="term"><code class="literal">GDK_RTL_LOGO</code></span></p></td>
<td>
<img src="rtl_logo.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-SAILBOAT:CAPS"></a><span class="term"><code class="literal">GDK_SAILBOAT</code></span></p></td>
<td>
<img src="sailboat.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-SB-DOWN-ARROW:CAPS"></a><span class="term"><code class="literal">GDK_SB_DOWN_ARROW</code></span></p></td>
<td>
<img src="sb_down_arrow.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-SB-H-DOUBLE-ARROW:CAPS"></a><span class="term"><code class="literal">GDK_SB_H_DOUBLE_ARROW</code></span></p></td>
<td>
<img src="sb_h_double_arrow.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-SB-LEFT-ARROW:CAPS"></a><span class="term"><code class="literal">GDK_SB_LEFT_ARROW</code></span></p></td>
<td>
<img src="sb_left_arrow.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-SB-RIGHT-ARROW:CAPS"></a><span class="term"><code class="literal">GDK_SB_RIGHT_ARROW</code></span></p></td>
<td>
<img src="sb_right_arrow.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-SB-UP-ARROW:CAPS"></a><span class="term"><code class="literal">GDK_SB_UP_ARROW</code></span></p></td>
<td>
<img src="sb_up_arrow.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-SB-V-DOUBLE-ARROW:CAPS"></a><span class="term"><code class="literal">GDK_SB_V_DOUBLE_ARROW</code></span></p></td>
<td>
<img src="sb_v_double_arrow.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-SHUTTLE:CAPS"></a><span class="term"><code class="literal">GDK_SHUTTLE</code></span></p></td>
<td>
<img src="shuttle.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-SIZING:CAPS"></a><span class="term"><code class="literal">GDK_SIZING</code></span></p></td>
<td>
<img src="sizing.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-SPIDER:CAPS"></a><span class="term"><code class="literal">GDK_SPIDER</code></span></p></td>
<td>
<img src="spider.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-SPRAYCAN:CAPS"></a><span class="term"><code class="literal">GDK_SPRAYCAN</code></span></p></td>
<td>
<img src="spraycan.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-STAR:CAPS"></a><span class="term"><code class="literal">GDK_STAR</code></span></p></td>
<td>
<img src="star.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-TARGET:CAPS"></a><span class="term"><code class="literal">GDK_TARGET</code></span></p></td>
<td>
<img src="target.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-TCROSS:CAPS"></a><span class="term"><code class="literal">GDK_TCROSS</code></span></p></td>
<td>
<img src="tcross.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-TOP-LEFT-ARROW:CAPS"></a><span class="term"><code class="literal">GDK_TOP_LEFT_ARROW</code></span></p></td>
<td>
<img src="top_left_arrow.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-TOP-LEFT-CORNER:CAPS"></a><span class="term"><code class="literal">GDK_TOP_LEFT_CORNER</code></span></p></td>
<td>
<img src="top_left_corner.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-TOP-RIGHT-CORNER:CAPS"></a><span class="term"><code class="literal">GDK_TOP_RIGHT_CORNER</code></span></p></td>
<td>
<img src="top_right_corner.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-TOP-SIDE:CAPS"></a><span class="term"><code class="literal">GDK_TOP_SIDE</code></span></p></td>
<td>
<img src="top_side.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-TOP-TEE:CAPS"></a><span class="term"><code class="literal">GDK_TOP_TEE</code></span></p></td>
<td>
<img src="top_tee.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-TREK:CAPS"></a><span class="term"><code class="literal">GDK_TREK</code></span></p></td>
<td>
<img src="trek.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-UL-ANGLE:CAPS"></a><span class="term"><code class="literal">GDK_UL_ANGLE</code></span></p></td>
<td>
<img src="ul_angle.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-UMBRELLA:CAPS"></a><span class="term"><code class="literal">GDK_UMBRELLA</code></span></p></td>
<td>
<img src="umbrella.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-UR-ANGLE:CAPS"></a><span class="term"><code class="literal">GDK_UR_ANGLE</code></span></p></td>
<td>
<img src="ur_angle.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-WATCH:CAPS"></a><span class="term"><code class="literal">GDK_WATCH</code></span></p></td>
<td>
<img src="watch.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-XTERM:CAPS"></a><span class="term"><code class="literal">GDK_XTERM</code></span></p></td>
<td>
<img src="xterm.png">
</td>
</tr>
<tr>
<td><p><a name="GDK-LAST-CURSOR:CAPS"></a><span class="term"><code class="literal">GDK_LAST_CURSOR</code></span></p></td>
<td>last cursor type
</td>
</tr>
<tr>
<td><p><a name="GDK-BLANK-CURSOR:CAPS"></a><span class="term"><code class="literal">GDK_BLANK_CURSOR</code></span></p></td>
<td>Blank cursor. Since 2.16
</td>
</tr>
<tr>
<td><p><a name="GDK-CURSOR-IS-PIXMAP:CAPS"></a><span class="term"><code class="literal">GDK_CURSOR_IS_PIXMAP</code></span></p></td>
<td>type of cursors constructed with
  <a class="link" href="gdk3-Cursors.html#gdk-cursor-new-from-pixbuf" title="gdk_cursor_new_from_pixbuf ()"><code class="function">gdk_cursor_new_from_pixbuf()</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-cursor-new"></a><h3>gdk_cursor_new ()</h3>
<pre class="programlisting"><a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="returnvalue">GdkCursor</span></a> *         gdk_cursor_new                      (<em class="parameter"><code><a class="link" href="gdk3-Cursors.html#GdkCursorType" title="enum GdkCursorType"><span class="type">GdkCursorType</span></a> cursor_type</code></em>);</pre>
<p>
Creates a new cursor from the set of builtin cursors for the default display.
See <a class="link" href="gdk3-Cursors.html#gdk-cursor-new-for-display" title="gdk_cursor_new_for_display ()"><code class="function">gdk_cursor_new_for_display()</code></a>.
</p>
<p>
To make the cursor invisible, use <a class="link" href="gdk3-Cursors.html#GDK-BLANK-CURSOR:CAPS"><code class="literal">GDK_BLANK_CURSOR</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>cursor_type</code></em> :</span></p></td>
<td>cursor to create</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-cursor-new-from-pixbuf"></a><h3>gdk_cursor_new_from_pixbuf ()</h3>
<pre class="programlisting"><a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="returnvalue">GdkCursor</span></a> *         gdk_cursor_new_from_pixbuf          (<em class="parameter"><code><a class="link" href="gdk3-GdkDisplay.html#GdkDisplay" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code><a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);</pre>
<p>
Creates a new cursor from a pixbuf.
</p>
<p>
Not all GDK backends support RGBA cursors. If they are not
supported, a monochrome approximation will be displayed.
The functions <a class="link" href="gdk3-GdkDisplay.html#gdk-display-supports-cursor-alpha" title="gdk_display_supports_cursor_alpha ()"><code class="function">gdk_display_supports_cursor_alpha()</code></a> and
<a class="link" href="gdk3-GdkDisplay.html#gdk-display-supports-cursor-color" title="gdk_display_supports_cursor_color ()"><code class="function">gdk_display_supports_cursor_color()</code></a> can be used to determine
whether RGBA cursors are supported;
<a class="link" href="gdk3-GdkDisplay.html#gdk-display-get-default-cursor-size" title="gdk_display_get_default_cursor_size ()"><code class="function">gdk_display_get_default_cursor_size()</code></a> and
<a class="link" href="gdk3-GdkDisplay.html#gdk-display-get-maximal-cursor-size" title="gdk_display_get_maximal_cursor_size ()"><code class="function">gdk_display_get_maximal_cursor_size()</code></a> give information about
cursor sizes.
</p>
<p>
If <em class="parameter"><code>x</code></em> or <em class="parameter"><code>y</code></em> are <code class="literal">-1</code>, the pixbuf must have
options named "x_hot" and "y_hot", resp., containing
integer values between <code class="literal">0</code> and the width resp. height of
the pixbuf. (Since: 3.0)
</p>
<p>
On the X backend, support for RGBA cursors requires a
sufficently new version of the X Render extension.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td>the <a class="link" href="gdk3-GdkDisplay.html#GdkDisplay" title="GdkDisplay"><span class="type">GdkDisplay</span></a> for which the cursor will be created</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
<td>the <a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> containing the cursor image</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>the horizontal offset of the 'hotspot' of the cursor.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>the vertical offset of the 'hotspot' of the cursor.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a>.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-cursor-new-from-name"></a><h3>gdk_cursor_new_from_name ()</h3>
<pre class="programlisting"><a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="returnvalue">GdkCursor</span></a> *         gdk_cursor_new_from_name            (<em class="parameter"><code><a class="link" href="gdk3-GdkDisplay.html#GdkDisplay" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
<p>
Creates a new cursor by looking up <em class="parameter"><code>name</code></em> in the current cursor
theme.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td>the <a class="link" href="gdk3-GdkDisplay.html#GdkDisplay" title="GdkDisplay"><span class="type">GdkDisplay</span></a> for which the cursor will be created</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>the name of the cursor</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is no cursor with
the given name</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.8</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-cursor-new-for-display"></a><h3>gdk_cursor_new_for_display ()</h3>
<pre class="programlisting"><a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="returnvalue">GdkCursor</span></a> *         gdk_cursor_new_for_display          (<em class="parameter"><code><a class="link" href="gdk3-GdkDisplay.html#GdkDisplay" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gdk3-Cursors.html#GdkCursorType" title="enum GdkCursorType"><span class="type">GdkCursorType</span></a> cursor_type</code></em>);</pre>
<p>
Creates a new cursor from the set of builtin cursors.
Some useful ones are:
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem"><p>
 <img src="right_ptr.png"> <a class="link" href="gdk3-Cursors.html#GDK-RIGHT-PTR:CAPS"><span class="type">GDK_RIGHT_PTR</span></a> (right-facing arrow)
</p></li>
<li class="listitem"><p>
 <img src="crosshair.png"> <a class="link" href="gdk3-Cursors.html#GDK-CROSSHAIR:CAPS"><span class="type">GDK_CROSSHAIR</span></a> (crosshair)
</p></li>
<li class="listitem"><p>
 <img src="xterm.png"> <a class="link" href="gdk3-Cursors.html#GDK-XTERM:CAPS"><span class="type">GDK_XTERM</span></a> (I-beam)
</p></li>
<li class="listitem"><p>
<img src="watch.png"> <a class="link" href="gdk3-Cursors.html#GDK-WATCH:CAPS"><span class="type">GDK_WATCH</span></a> (busy)
</p></li>
<li class="listitem"><p>
<img src="fleur.png"> <a class="link" href="gdk3-Cursors.html#GDK-FLEUR:CAPS"><span class="type">GDK_FLEUR</span></a> (for moving objects)
</p></li>
<li class="listitem"><p>
<img src="hand1.png"> <a class="link" href="gdk3-Cursors.html#GDK-HAND1:CAPS"><span class="type">GDK_HAND1</span></a> (a right-pointing hand)
</p></li>
<li class="listitem"><p>
<img src="hand2.png"> <a class="link" href="gdk3-Cursors.html#GDK-HAND2:CAPS"><span class="type">GDK_HAND2</span></a> (a left-pointing hand)
</p></li>
<li class="listitem"><p>
<img src="left_side.png"> <a class="link" href="gdk3-Cursors.html#GDK-LEFT-SIDE:CAPS"><span class="type">GDK_LEFT_SIDE</span></a> (resize left side)
</p></li>
<li class="listitem"><p>
<img src="right_side.png"> <a class="link" href="gdk3-Cursors.html#GDK-RIGHT-SIDE:CAPS"><span class="type">GDK_RIGHT_SIDE</span></a> (resize right side)
</p></li>
<li class="listitem"><p>
<img src="top_left_corner.png"> <a class="link" href="gdk3-Cursors.html#GDK-TOP-LEFT-CORNER:CAPS"><span class="type">GDK_TOP_LEFT_CORNER</span></a> (resize northwest corner)
</p></li>
<li class="listitem"><p>
<img src="top_right_corner.png"> <a class="link" href="gdk3-Cursors.html#GDK-TOP-RIGHT-CORNER:CAPS"><span class="type">GDK_TOP_RIGHT_CORNER</span></a> (resize northeast corner)
</p></li>
<li class="listitem"><p>
<img src="bottom_left_corner.png"> <a class="link" href="gdk3-Cursors.html#GDK-BOTTOM-LEFT-CORNER:CAPS"><span class="type">GDK_BOTTOM_LEFT_CORNER</span></a> (resize southwest corner)
</p></li>
<li class="listitem"><p>
<img src="bottom_right_corner.png"> <a class="link" href="gdk3-Cursors.html#GDK-BOTTOM-RIGHT-CORNER:CAPS"><span class="type">GDK_BOTTOM_RIGHT_CORNER</span></a> (resize southeast corner)
</p></li>
<li class="listitem"><p>
<img src="top_side.png"> <a class="link" href="gdk3-Cursors.html#GDK-TOP-SIDE:CAPS"><span class="type">GDK_TOP_SIDE</span></a> (resize top side)
</p></li>
<li class="listitem"><p>
<img src="bottom_side.png"> <a class="link" href="gdk3-Cursors.html#GDK-BOTTOM-SIDE:CAPS"><span class="type">GDK_BOTTOM_SIDE</span></a> (resize bottom side)
</p></li>
<li class="listitem"><p>
<img src="sb_h_double_arrow.png"> <a class="link" href="gdk3-Cursors.html#GDK-SB-H-DOUBLE-ARROW:CAPS"><span class="type">GDK_SB_H_DOUBLE_ARROW</span></a> (move vertical splitter)
</p></li>
<li class="listitem"><p>
<img src="sb_v_double_arrow.png"> <a class="link" href="gdk3-Cursors.html#GDK-SB-V-DOUBLE-ARROW:CAPS"><span class="type">GDK_SB_V_DOUBLE_ARROW</span></a> (move horizontal splitter)
</p></li>
<li class="listitem"><p>
<a class="link" href="gdk3-Cursors.html#GDK-BLANK-CURSOR:CAPS"><span class="type">GDK_BLANK_CURSOR</span></a> (Blank cursor). Since 2.16
</p></li>
</ul></div>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td>the <a class="link" href="gdk3-GdkDisplay.html#GdkDisplay" title="GdkDisplay"><span class="type">GdkDisplay</span></a> for which the cursor will be created</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cursor_type</code></em> :</span></p></td>
<td>cursor to create</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-cursor-get-display"></a><h3>gdk_cursor_get_display ()</h3>
<pre class="programlisting"><a class="link" href="gdk3-GdkDisplay.html#GdkDisplay" title="GdkDisplay"><span class="returnvalue">GdkDisplay</span></a> *        gdk_cursor_get_display              (<em class="parameter"><code><a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a> *cursor</code></em>);</pre>
<p>
Returns the display on which the <a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a> is defined.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>cursor</code></em> :</span></p></td>
<td>a <a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="gdk3-GdkDisplay.html#GdkDisplay" title="GdkDisplay"><span class="type">GdkDisplay</span></a> associated to <em class="parameter"><code>cursor</code></em>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-cursor-get-image"></a><h3>gdk_cursor_get_image ()</h3>
<pre class="programlisting"><a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *         gdk_cursor_get_image                (<em class="parameter"><code><a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a> *cursor</code></em>);</pre>
<p>
Returns a <a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> with the image used to display the cursor.
</p>
<p>
Note that depending on the capabilities of the windowing system and 
on the cursor, GDK may not be able to obtain the image data. In this 
case, <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>cursor</code></em> :</span></p></td>
<td>a <a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> representing <em class="parameter"><code>cursor</code></em>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.8</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-cursor-get-cursor-type"></a><h3>gdk_cursor_get_cursor_type ()</h3>
<pre class="programlisting"><a class="link" href="gdk3-Cursors.html#GdkCursorType" title="enum GdkCursorType"><span class="returnvalue">GdkCursorType</span></a>       gdk_cursor_get_cursor_type          (<em class="parameter"><code><a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a> *cursor</code></em>);</pre>
<p>
Returns the cursor type for this cursor.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>cursor</code></em> :</span></p></td>
<td>a <a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="gdk3-Cursors.html#GdkCursorType" title="enum GdkCursorType"><span class="type">GdkCursorType</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.22</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-cursor-ref"></a><h3>gdk_cursor_ref ()</h3>
<pre class="programlisting"><a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="returnvalue">GdkCursor</span></a> *         gdk_cursor_ref                      (<em class="parameter"><code><a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a> *cursor</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gdk_cursor_ref</code> has been deprecated since version 3.0 and should not be used in newly-written code. Use <a href="../gobject/gobject-The-Base-Object-Type.html#g-object-ref"><code class="function">g_object_ref()</code></a> instead</p>
</div>
<p>
Adds a reference to <em class="parameter"><code>cursor</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>cursor</code></em> :</span></p></td>
<td>a <a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>Same <em class="parameter"><code>cursor</code></em> that was passed in. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-cursor-unref"></a><h3>gdk_cursor_unref ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gdk_cursor_unref                    (<em class="parameter"><code><a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a> *cursor</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gdk_cursor_unref</code> has been deprecated since version 3.0 and should not be used in newly-written code. Use <a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> instead</p>
</div>
<p>
Removes a reference from <em class="parameter"><code>cursor</code></em>, deallocating the cursor
if no references remain.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>cursor</code></em> :</span></p></td>
<td>a <a class="link" href="gdk3-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a>
</td>
</tr></tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.17</div>
</body>
</html>